/**
 * @author Stephan Pfaff (http://www.derdaumen.net)
 */

function Item(prefix, id, type, basename, path, label, alias, thumb, thumb_enable, thumb_delete, item_class){
	try {
		this.locked 		= false;
		this.prefix 		= prefix;
		this.id 			= parseInt(id);
		this.type 			= type;
		this.basename 		= basename;
		this.path 			= path;
		this.label 			= label;
		this.alias 			= alias;
		if (thumb != null && thumb != '')
			this.thumb		= thumb;
		this.thumb_enable 	= thumb_enable;
		this.thumb_delete 	= thumb_delete;
		this.item_class		= item_class;
	} catch (e) {
		if(debug) alert('Initialization of new Item failed, missing or wrong '
				+'parameter! ('+e+')');
	}
};
Item.prototype.prefix = "";
Item.prototype.id = 0;
Item.prototype.type = "";
Item.prototype.basename = "";
Item.prototype.path = "";
Item.prototype.label = "";
Item.prototype.alias = "";
Item.prototype.thumb = "";
Item.prototype.thumb_enable = false;
Item.prototype.thumb_delete = false;
Item.prototype.item_class = "";
Item.prototype.locked = true;

/**
 * Loads the dedicated children of the item
 */
Item.prototype.loadChilds = function() {};